<?php
namespace app\modules\common\components\innercalls;

use app\modules\common\components\Api;
use app\modules\common\components\innercalls\apiconsts\ApiGateWayConst;

class GateWayCall
{
    public function getTest()
    {
        $postData = [];
        $api = ApiGateWayConst::TEST;
        $apiHandler = new ApiGateWayConst();

        /**
         * 获取响应结果
         */
        $apiRes = $apiHandler->innerJsonApiCall($postData, $api);
        if ($apiRes['code'] == Api::CODE_SUCCESS) {
            return $apiRes['data'];
        } else {
            return [];
        }
    }
}
